package com.example.service.impl;

import com.example.domain.FruitClean;
import com.example.service.JvmMemoryService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class JvmMemoryServiceImpl implements JvmMemoryService {
    @Override
    public void outOfMemory(int m) {
        List<FruitClean> list = new ArrayList<>();
        for (int i = 0; i < m; i++) {
            list.add(new FruitClean());
        }
    }
}
